/*
 *    Copyright (c) 2018-2025, gewu All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the gewucn.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: gewu
 */
export const tableOption = {
    border: true,
    selection: true,
    index: true,
    indexLabel: '序号',
    stripe: true,
    menuAlign: 'center',
    searchMenuSpan:6,
    editBtn: false,
    delBtn: false,
    align: 'center',
    addBtn: false,
    refreshBtn: false,
    columnBtn: false,
    column: [{
        label: '制度编号',
        prop: 'regulationNo',
        // search: true,
        width: 130,
        slot: true,
        span: 12,
        rules: [
        ]
    }, {
        label: '制度名称',
        width: 130,
        slot:true,
        prop: 'regulationName',
        value: '',
        span: 12,
        rules: [{
            min: 6,
            max: 20,
            message: '长度在 6 到 20 个字符',
            trigger: 'blur'
        }]
    }, {
        label: '是否置顶',
        prop: 'isTop',
        width: 100,
        slot:true,
        span: 24,
    }, {
        label: '分类',
        prop: 'regulationCategoryName',
        width: 150,
        slot:true,
        span: 24,
    }, {
        label: '创建人',
        prop: 'createBy',
        span: 24,
    }, {
        label: '发布范围',
        prop: 'deptName',
        span: 24,
    }, {
        width: 140,
        label: '创建时间',
        prop: 'createTime',
        type: 'datetime',
        format: 'yyyy-MM-dd HH:mm',
        valueFormat: 'yyyy-MM-dd HH:mm:ss',
        editDisabled: true,
        addDisplay: false,
        span: 24
    },
        {
            label: '描述',
            prop: 'description',
            width: 150,
            slot:true
        }]

}
